#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 crane <crane@gosun>
#
# Distributed under terms of the MIT license.

"""

"""

class ChainProb:
    def __init__(self):
        pass

    def probs(self, n):
        lst = [None] * n
        p = 1/n
        lst[0] = p
        lst[-1] = 1

        for i in range(1, n-1):
            lst[i] = p / ( (n-i) / n )

        return lst


def test():
    s = ChainProb()

    lst = s.probs(3)
    print(lst)

    lst = s.probs(10)
    print(lst)

def main():
    print("start main")
    test()

if __name__ == "__main__":
    main()
